package websocket.chat;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by mayufeng on 2017/5/17.
 */
public class GloabStatus {
    public static Map<String,String> mapUser = new HashMap<>();


    /**
     * 输出qq当前的状态
     * @param qq
     * @return
     */
    public static String status(String qq){
        if(mapUser.containsKey(qq)){
            return "在线";
        }
        return "离线";
    }
}
